package com.cy.mall.dao.mapper.industry;

import com.cy.mall.model.domain.industry.IndustryCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Description IndustryCodeMapper
 * @Author tanyilin
 * @Date 2019/3/20 11:35
 */
@Mapper
public interface IndustryCodeMapper extends BaseMapper<IndustryCode> {

    /**
     * 根据 parentId 查询子级行业
     * @param parentId
     * @return java.util.List<com.cy.mall.model.domain.industry.IndustryCode>
     */
    List<IndustryCode> selectIndustryCodeByParentId(@Param("parentId") Long parentId);
}
